package process;

import javafx.application.Platform;

public class AssignmentInstruction extends Myinstuction {
	private int val;
	
	public  AssignmentInstruction(int val) {//构造方法
		this.val = val;
	}
	
	@Override
	public void run() {
		CPU.getCpu().setAx(val);
//		System.out.println("run: x="+ val );
		ProcessController.getProcessController().outPut("run: x="+ val+"\n"
													+"result: x="+ CPU.getCpu().getAx()+"\n");
	}
}
